home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / comms_w / fibsw130.zip / TELNET.SCR < prev    next >
Text File  |  1994-05-31  |  1KB  |  42 lines

  1. @echo 0
  2. @rem *************************************************************************
  3. @rem ****  telnet.scr: Establish a connection to fibs from the telnet      ***
  4. @rem ****              command prompt. Assumes that we are not already in  ***
  5. @rem ****              telnet. Will attempt to retry if neccessary         ***
  6. @rem *************************************************************************
  7.  
  8. @echo "\r\n** Starting telnet...\r\n"
  9. @:RetryTelnet
  10. @   send  "telnet\r"
  11. @if not @wait  "telnet>" 30
  12. @    echo \r** Error(telnet.scr): Failed to start telnet.\r\n"
  13. <
  14. @endif
  15.  
  16. @echo "\r\n** Connecting to FIBS via telnet\r\n"
  17. @send "\r"
  18. @if not @wait "telnet>" 30
  19. @    echo "\r\n** Error(telent.scr): Failed to establish telnet connection\r\n"
  20. <
  21. @endif
  22.  
  23. @:RetryTelnetConnect
  24. @   send "open %FibsInternetAddress% %FibsTelnetPort%\r"
  25. @if not @wait "Escape character is" 30
  26. @    rem The connection failed. Retry it.
  27. @    echo "\r\n** Connect failed: Retrying connection...\r\n"
  28. @    send "close\r"
  29. @    if not @wait "telnet>" 30
  30. @       echo "\r\n** Error(telnet.scr): Failed to close telnet connection\r\n"
  31. <
  32. @    endif
  33. @    goto RetryTelnetConnect
  34. @endif
  35. @wait "\n" 50
  36.  
  37. @rem ********************************************************************
  38. @rem **** The telnet connection has been made. Now login in to FIBS
  39. @rem ********************************************************************
  40.  
  41. <fibslogn.scr
  42.